#ifndef SERVEWIDGET_H
#define SERVEWIDGET_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui {
class ServeWidget;
}

class ServeWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ServeWidget(QWidget *parent = 0);
    ~ServeWidget();
    

public slots:
    /**
     * @brief showInfoOfConnect  //连接状态
     */
    void showInfoOfConnect();

    /**
     * @brief getMessage   //获取客户端发送的数据
     */
    void getMessage();

private:
    Ui::ServeWidget *ui;

    QTcpServer *tcpServer;
    QTcpSocket *tcpSocket;
};

#endif // SERVEWIDGET_H
